cmake_minimum_required(VERSION 3.4)

project (HELLO)

include_directories(mylib/include)

add_library(library1 STATIC
    mylib/include/library1.h
    mylib/src/library1.cpp)

add_executable(hello
    mylib/include/library1.h
    main.cpp)

target_link_libraries(hello library1)

if(WIN32)
    # some options related to windows
elseif(UNIX)
    # some options related to UNIX
elseif(APPLE)
    # some options related to APPLE
endif(WIN32)
